<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>  
<%  
String path = request.getContextPath();  
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";  
%>  
  
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">  
<html>  
  <head>  
    <base href="<%=basePath%>">  
      
    <title>新增手机</title>  
      
    <meta http-equiv="pragma" content="no-cache">  
    <meta http-equiv="cache-control" content="no-cache">  
    <meta http-equiv="expires" content="0">      
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">  
    <meta http-equiv="description" content="This is my page">  
    <!--  
    <link rel="stylesheet" type="text/css" href="styles.css">  
    -->  
<script type="text/javascript">  
function dosubmit(){  
    var th = document.form1;  
    th.action="<%=path%>/servlet/ProductServlet?action_flag=add";  
    th.submit();  
  
}  
  
</script>  
  </head>  
    
  <body>  
    <div align="center">  
      
        <table width=70% style="margin:auto;">  
            <tr><td align="center" height=150 valign="bottom">手机信息添加</td></tr>  
            <tr>  
                <td>  
                    <form id="form1" name="form1" action="" method="post" enctype="multipart/form-data">  
                    <table border=1 style="margin:auto">  
                        <tr >  
                            <td>手机名称</td>  
                            <td><input type="text" name="proname" id="proname"/></td>  
                            <td>手机价格</td>  
                            <td><input type="text" name="proprice" id="proprice"/></td>  
                        </tr>  
                        <tr>  
                            <td>手机官网</td>  
                            <td colspan="3"><input type="text" name="proaddress" id="proaddress"/></td>  
                        </tr>  
                        <tr>  
                            <td>手机图片</td>  
                            <td colspan="3"><input type="file" name="proimage" id="proimage"  size=35/></td>  
                        </tr>  
                      
                    </table>   
                    </form>                     
                  
                </td>  
            </tr>  
            <tr>  
                <td colspan="4" align="center">  
                    <button type="button" onclick="javascript:dosubmit();">确定</button>  
                    <button type="button" onclick="javascript:history.go(-1)">返回</button>  
                  
                </td>  
            </tr>  
              
          
        </table>  
          
    </div>  
  </body>  
</html>  